import request from '@/utils/request'

// const icode = 'E4B3D955CB19E650'

export function getEduVideoDictList() {
    return request({
        url: '/eduvideo/eduOrg/getEduVideoDictList',
        method: 'get',
        params: {}
    })
}

// 区划树
export function getAreaTree(params) {
    return request({
        url: '/no_access/biz/hswjp/area_tree',
        // headers: {
        //     isToken: true,
        //     repeatSubmit: false
        // },
        method: 'get',
        params: params,
    })
}
// 点击区划树  areaCode
export function getTreeDetail(params) {
    return request({
        url: '/no_access/biz/hswjp/area_info',
        method: 'get',
        params: params
    })
}
export function getEnterpriseDetails(params) {
    return request({
        url: '/no_access/biz/hswjp/enterprise_detail',
        method: 'get',
        params: params
    })
}

export function getExportBuilding(params) {
    return request({
        url: '/no_access/biz/hswjp/export_building',
        method: 'get',
        params: params,
        responseType: "blob"
    })
}

export function getTreeDetailCorrection(params) {
    return request({
        url: '/no_access/biz/hswjp/area_info_correction',
        method: 'get',
        params: params
    })
}

export function getAreaInfoForDrop(params) {
    return request({
        url: '/no_access/biz/hswjp/area_info_fordrop',
        method: 'get',
        params: params
    })
}

// 行政区划全量数据
export function getFullXzqhGeo(params) {
    return request({
        url: '/no_access/biz/hswjp/xzqh_geo',
        method: 'get',
        params: params
    })
}

// 获取社区内建筑物列表
export function getJzwListApi(params) {
    return request({
        url: '/no_access/biz/hswjp/jzw_list',
        method: 'get',
        params: params
    })
}

// 获取验证码
export function getValidCodeApi(params) {
    return request({
        url: '/system/security/verification/code',
        method: 'get',
        params: params
    })
}

// 登录
export function loginApi(params) {
    return request({
        url: '/system/security/login',
        method: 'post',
        headers: {
            isToken: false,
            repeatSubmit: false
        },
        data: params
    })
}

// 根据行政区划导出
export function getExportAllApi(params) {
    return request({
        url: '/no_access/biz/hswjp/export',
        method: 'get',
        params: params,
        responseType: "blob",
        timeout: 0
    })
}


